package demoMod.invincibleOne.patches;

import com.evacipated.cardcrawl.modthespire.lib.ByRef;
import com.evacipated.cardcrawl.modthespire.lib.SpireInsertPatch;
import com.evacipated.cardcrawl.modthespire.lib.SpirePatch;
import com.evacipated.cardcrawl.modthespire.lib.SpireReturn;
import com.megacrit.cardcrawl.dungeons.AbstractDungeon;
import com.megacrit.cardcrawl.monsters.AbstractMonster;
import com.megacrit.cardcrawl.monsters.MonsterGroup;
import com.megacrit.cardcrawl.powers.MalleablePower;
import demoMod.invincibleOne.cards.invincible.BattleYoga;

public class EnemyBlurPatch {
    @SpirePatch(
            clz = MonsterGroup.class,
            method = "applyPreTurnLogic"
    )
    public static class NotClearBlockPatch {
        @SpireInsertPatch(rloc = 131 - 128, localvars = {"m"})
        public static SpireReturn<Void> Insert(MonsterGroup _instance, AbstractMonster m) {
            if (m.hasPower("Blur")) {
                m.applyStartOfTurnPowers();
                return SpireReturn.Return(null);
            }
            return SpireReturn.Continue();
        }
    }
}
